package com.nbsaas.boot.storage.api.domain.request;

import com.nbsaas.boot.rest.filter.Operator;
import com.nbsaas.boot.rest.filter.Search;
import com.nbsaas.boot.rest.request.PageRequest;
import lombok.*;
import java.io.Serializable;

/**
* 搜索bean
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class FileSearch   extends PageRequest implements Serializable {

/**
* 序列化参数
*/
private static final long serialVersionUID = 1L;


    @Search(name = "name",operator = Operator.like)
    private String name;


            /**
            * 文件扩展名
            **/
            @Search(name = "extensionName",operator = Operator.like)
            private String extensionName;

            /**
            * 创建人id
            **/
            @Search(name = "creatorId",operator = Operator.eq)
            private Long creatorId;

            /**
            * 创建人姓名
            **/
            @Search(name = "creatorName",operator = Operator.like)
            private String creatorName;

            /**
            * 文件地址
            **/
            @Search(name = "url",operator = Operator.like)
            private String url;

            /**
            * 文件大小
            **/
            @Search(name = "fileSize",operator = Operator.eq)
            private Long fileSize;

            /**
            * 对象存储key
            **/
            @Search(name = "objectKey",operator = Operator.like)
            private String objectKey;

            /**
            * 服务端地址
            **/
            @Search(name = "serverUrl",operator = Operator.like)
            private String serverUrl;

            /**
            * 租户id
            **/
            @Search(name = "tenantId",operator = Operator.eq)
            private Long tenantId;

            /**
            * 主键id
            **/
            @Search(name = "id",operator = Operator.eq)
            private Long id;



}